<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />

<link href="css/adminstyle.css" rel="stylesheet" type="text/css">

<title>管理区域</title>

<script src="js/js.js"></script>

<script>

function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='admin_delete.html?id='+id;

	}

}

</script>

</head>



<body>
<div id="man_zone">

<div style="background-color:#FFFFFF ">

<div style="margin-top:10px;margin-bottom:10px;">

<div class="div1">

<form method="get">

&nbsp;&nbsp;&nbsp;关键字 <input name="name" type="text" value="<?=getParamValue('name')?>" size="30" />
状态
<select name="status" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_status_option,getParamValue('status'))?>
</select>
用户角色
<select name="eo_admin_group" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_admin_group_option,getParamValue('eo_admin_group'))?>
</select>
用户类型
<select name="admin_type" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_admin_type_option,getParamValue('admin_type'))?>
</select>
<input value="搜索" class="PublicBot" name="" type="submit" />
<input name="" type="button" class="PublicBot" onclick="window.location.href='admin_add.html'" value="添加" />
</div>

</form>
</div>
<form method="get" id="form" action="admin_delete.html">

  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="2%"></td>
      <td width="10%">用户名</td>
      <td width="10%">权限组</td>
      <td width="10%">类别</td>
      <td width="10%">部门</td>
      <td width="10%">员工名</td>
      <td width="10%">状态</td>
      <td width="10%">语言</td>
      <td align="center"  width="15%">编辑</td>
    </tr>
    <?

    foreach($list as $v){

	?>

    <tr  style="background-color:#FFFFFF ">

      <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td  align="center"><?=$v['name']?></td>

      <td align="center" ><?=getStr($eo_admin_type,$v['eo_admin_group'])?></td>

      <td  align="center"><?=getStr($admin_type, $v['admin_type'])?></td>

      <td align="center" ><?if($v['admin_type']==ADMIN_TYPE_EMPLOYEE){?>

      		<?= getStr($department,$v['dept_id'])?>

      <?}else{?>

      		<?=getStr($teacher_dept,$v['dept_id'])?>

       <?}?></td>

      <td  align="center"><?if($v['admin_type']==ADMIN_TYPE_EMPLOYEE){?>

		<?=getStr($employee_pairs,$v['employee_id'] )?>

		<?}elseif($v['admin_type']==ADMIN_TYPE_TEACHER){?>

		<?=getStr($teacher_pairs,$v['teacher_id'] )?>

		<?}elseif($v['admin_type']==ADMIN_TYPE_FUNDUSER){?>
			<?=getStr($funduser_pairs,$v['fund_user_id'] )?>
		 <?}?></td>

      <td align="center" ><?=getStr($status,$v['status'])?></td>

      <td align="center" ><?=getStr($default_language,$v['default_language'])?></td>

      <td align="center"><a onclick=delc(<?=$v['id']?>) 

      href="javaScript:void(0);">删除</a>　　<a href="admin_add.html?id=<?=$v['id']?>">修改</a></td>

    </tr> 

    <?

	}

	?>

 <tr    bgcolor="#FFFFFF">
 <td colspan="14" align="center">
 &nbsp;&nbsp;&nbsp;<?  echo $page; ?>
 </td>
 </tr>
	</table>
</form>
</div>
</div>
</body>

</html>

